home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.4 / AdaptingToFonts / Example2Strings.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-01  |  2.7 KB  |  105 lines

  1. /*
  2.  * Example 2 - Based on the UI code for FontMover 2.0 by Michael Sinz
  3.  *
  4.  * Copyright (c) 1989,90 - MKSoft Development
  5.  *
  6.  ************************************************************************
  7.  *                                                                      *
  8.  *                            DISCLAIMER                                *
  9.  *                                                                      *
  10.  *   THIS SOFTWARE IS PROVIDED "AS IS".                                 *
  11.  *   NO REPRESENTATIONS OR WARRANTIES ARE MADE WITH RESPECT TO THE      *
  12.  *   ACCURACY, RELIABILITY, PERFORMANCE, CURRENTNESS, OR OPERATION      *
  13.  *   OF THIS SOFTWARE, AND ALL USE IS AT YOUR OWN RISK.                 *
  14.  *   NEITHER COMMODORE NOR THE AUTHORS ASSUME ANY RESPONSIBILITY OR     *
  15.  *   LIABILITY WHATSOEVER WITH RESPECT TO YOUR USE OF THIS SOFTWARE.    *
  16.  *                                                                      *
  17.  ************************************************************************
  18.  */
  19.  
  20. /*
  21.  * This file contains the global strings IDs.
  22.  */
  23.  
  24. #ifndef    FONTMOVERSTRINGS_H
  25. #define    FONTMOVERSTRINGS_H
  26.  
  27. #include    <exec/types.h>
  28. #include    <intuition/intuition.h>
  29.  
  30. enum    {
  31. /*
  32.  * These strings are for the main gadgets...
  33.  */
  34.     TXT_CopyRightString=0,
  35.     TXT_CopyLeftString,
  36.     TXT_CopyGadgetString,
  37.  
  38.     TXT_RemoveGadgetString,
  39.     TXT_ShowGadgetString,
  40.     TXT_HelpGadgetString,
  41.     TXT_AboutGadgetString,
  42.  
  43. /*
  44.  * This is tha last string that is used in any way for
  45.  * scaling the display.  This is the string between the
  46.  * arrows that let you select the font directory.
  47.  */
  48.     TXT_DirSelectGadget,
  49.  
  50. /*
  51.  * These are strings that are used in various places
  52.  * in the program.  (Note that these are not really used
  53.  * in the example but are here for educational use...)
  54.  */
  55.     TXT_Window_Title,
  56.     TXT_AboutFontMover,
  57.  
  58.     TXT_MakeDirPrompt,
  59.     TXT_DirectoryTitleString,
  60.  
  61.     TXT_CopyFontOpenError,
  62.     TXT_CopyFontCopyError1,
  63.     TXT_CopyFontCopyError2,
  64.  
  65.     TXT_AskRemove1,
  66.     TXT_AskRemove2,
  67.     TXT_AskRemove3,
  68.  
  69.     TXT_RemoveFontError,
  70.  
  71. /*
  72.  * These strings are used in the AlertUser calls
  73.  * and *MUST* be under 60 characters in length  (Should be 50 or less)
  74.  */
  75.     TXT_OpenLayersError,
  76.     TXT_OpenGraphicsError,
  77.     TXT_OpenDiskfontError,
  78.     TXT_OpenConsoleError,
  79.     TXT_GeneralMemoryError,
  80.     TXT_WindowOpenError,
  81.  
  82.     TXT_PressButtonToContinue,
  83.  
  84. /*
  85.  * If things go too far...
  86.  *
  87.  * This way, if any of the text display code has an error, the text
  88.  * it displays will be ERROR!
  89.  */
  90.     STRING_TOO_FAR
  91.     };
  92.  
  93. /*
  94.  * This function returns the string asked for...
  95.  */
  96. char *Get_String(short);
  97.  
  98. /*
  99.  * This routine returns the maximum size of all of
  100.  * the text gadget strings given the TextAttr
  101.  */
  102. short Max_Gadget_Length(struct TextAttr *);
  103.  
  104. #endif    /* FONTMOVERSTRINGS_H */
  105.